<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>shutters</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        body{
            background-color: rgb(60,60,70);
            display: flex;
            justify-content: center;
        }

        .box{
            width: 900px;
            height: 300px;
            position: relative;
            top: 200px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            box-shadow: 5px 5px 15px #000;
        }
        .pic{
            /* 设置动画过渡时间 */
            transition: 0.7s; 
            overflow: hidden;        
        }
        .pic:hover{
            flex-shrink: 0;
            flex-grow: 0;
        }
        img{
            width: 400px;
        }
    </style>
</head>
<body>

    <div class="box">
        <div class="pic"><img src="./images/1.gif" alt="图片加载失败"></div>
        <div class="pic"><img src="./images/2.gif" alt="图片加载失败"></div>
        <div class="pic"><img src="./images/3.gif" alt="图片加载失败"></div>
        <div class="pic"><img src="./images/4.gif" alt="图片加载失败"></div>
        <div class="pic"><img src="./images/5.gif" alt="图片加载失败"></div>
        <div class="pic"><img src="./images/6.gif" alt="图片加载失败"></div>
        
    </div>
</body>
</html>